<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sform" %>
<html>
  <head><title>:: Welcome to Defect Treasury ::</title>
  <style> 
body { 
background-repeat: no-repeat;
background-position:center;

}
td
{
padding:8px;
} 
.divAppName {
  text-align: center; 
  color: #FFFFFF; 
  font-family:verdana; 
  font-size: 18pt; 
}
.divLogIn {
  text-align: center; 
  color: #FFFFFF; 
  font-family:verdana; 
}
</style> 
  <script type="text/javascript">
  
  function fnLoginCheck() 
  {
	  var userid = document.getElementById('txtLoginId').value;
	  var password = document.getElementById('txtPassword').value;
	  if(userid != '' && password != '')
  	  {
		  return true;
  	  }
	  else
	  {
	  	  alert("Please enter valid username and password to proceed.")
		  return false;
	  }
  }
  </script>
  <META http-equiv="Content-Type" content="text/html;charset=UTF-8">
  </head>
  <body background="images/mainbg.jpg">
  <br>
    <div class='divAppName'>Defect Treasury - The only app where Defects are welcomed..</div>
<sform:form action="/DPUnified/login.dp" commandName="loginForm" method="POST" onSubmit="return fnLoginCheck();" >
<div class='divAppName'>
<table><tr><td>Username : </td><td>  <input type="text" id="txtLoginId" name="txtLoginId" ></tr>
<tr><td>Password :</td><td><input type="password" id="txtPassword" name="txtPassword" ></td></tr></table>
<input type="submit" value="Log In" name="cmdLogIn"/>
<input type="reset" value="Reset" name="cmdReset"/>
</div>
</sform:form> 
  </body>
</html>